const mysql = require('mysql')
const connection = mysql.createConnection({
  host: 'localhost',
  user: 'root',
  password: 'admin123',
  database: 'test'
})

connection.connect()

connection.query('SELECT 1 + 1 AS solution', function (error, results) {
  if (error) throw error
  console.log('The solution is: ', results[0].solution)
})
